// 引入组件
import Index from "../views/Index";
import Enroll from "../views/Enroll";
import Home from "../views/Home";
import Details from "../views/Details";
import Qaxonomi from "../views/Qaxonomi";
import ShoppingCart from "../views/ShoppingCart";
import Customers from "../views/Customers";
import Order from "../views/Order";
// 注册路由数组
const routes = [
  {
    // 首页默认是/
    path: "/",
    element: <Index></Index>,
  },
  {
    path: "/enroll",
    element: <Enroll></Enroll>,
  },
  {
    path: "/home",
    element: <Home></Home>,
  },
  {
    path: "/Details",
    element: <Details></Details>,
  },
  {
    path:"/Qaxonomi",
    element:<Qaxonomi></Qaxonomi>,
  },
  {
    path:"/ShoppingCart",
    element:<ShoppingCart></ShoppingCart>,
  },
  {
    path:"/Customers",
    element:<Customers></Customers>,
  }
  ,
  {
    path:"/Order",
    element:<Order></Order>,
  }
];
// 导出
export default routes;
